package com.ordersystem.service;

import com.ordersystem.domain.User;

import java.util.Map;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : UserService
 * @description : [user的service接口]
 * @createTime : [2022/3/20 17:02]
 * @updateUser : asus1020
 * @updateTime : [2022/3/20 17:02]
 * @updateRemark : [描述说明本次修改内容]
 */
public interface UserService {
        User login(User user);
        int regist(User user);
        int checkUsernameIsAvailable(String username);
        Map<String,Object>findAllUsers(Integer pagenum, Integer pagesize, String query);
        int updateUserState(Integer uid,boolean state);
        User findUserById(Integer uid);
        User updateUser(User user);
        int deleteUserById(Integer uid);
        int saveUserHeaderImg(String fileName,Integer uid);
}
